import { Controller, Get, Inject } from '@nestjs/common';
import { AppService } from './app.service';
import { UserService } from './user/user.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService, @Inject('user') private readonly userService: UserService) { }

  @Get()
  getHello(): string {
    return this.appService.getHello() + this.userService.getUser(1);
  }
}
